<template>
  <div style="">
    <el-row :gutter="20">
      <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
        <div class="header">
          <div class="txt-bor">
            <p>销售金额</p>
            <div class="flex2  backbox">
              <div class="flex1">
                <span class="text-allnum">总个数</span>
                <span class="text-num">53</span>
              </div>
              <div class="flex1">
                <span class="text-allnum">总金额</span>
                <span  class="text-num">￥5354.00</span>
              </div>
            </div>
          </div>
          <div class="txt-bor" style="margin-top: 10px;">
            <p>销售数据</p>
            <div class="flex2  backbox">
              <div class="flex1">
                <span class="text-allnum">出售自营号</span>
                <span class="text-num">53</span>
              </div>
              <div class="flex1">
                <span class="text-allnum">提合作商号</span>
                <span  class="text-num">232</span>
              </div>
            </div>
          </div>
          <div class="txt-bor " style="margin-top: 10px;">
            <p>销售数据</p>
            <div class="flex4 accountsource">
              <span v-for="(item,index) in formname " :key="index" @click="MoveCheck">{{ item.name }}</span>

            </div>
          </div>
        </div>
      </el-col>

      <el-col :xs="24" :sm="16" :md="16" :lg="16" :xl="16">
        <div class="header easycenter">
          <p>销售数据看板</p>
          <el-row :gutter="20">
            <el-col :span="12">
              <div class="grid-content bg-purpleone" style="margin-top: 15px;">
                <div class="vtncenterpur flex5" v-for="(i,k) in backname" :key="k" :class="{ 'active': k%2==0 }" v-if="k<7">
                  <div class="flex3">
                    <img class="imgboxvtn" src="../../../../assets/images/noone.png" alt="" srcset="" v-if="k==0">
                    <img class="imgboxvtn" src="../../../../assets/images/notwo.png" alt="" srcset="" v-if="k==1">
                    <img class="imgboxvtn" src="../../../../assets/images/nothree.png" alt="" srcset="" v-if="k==2">
                    <span v-if="k>2" style="font-size: 18px;color: #8A8A8A;">{{ k+1 }}</span>
                    <span style="padding-left: 10px;">{{ i.name }}</span>
                  </div>
                  <span v-if="i.num" style="color: #555770;">出售数量：{{ i.num }}</span>
                </div>
              </div>
            </el-col>
            <el-col :span="12">
              <div class="grid-content bg-purpleone" style="margin-top: 15px;">
                <div class="vtncenterpur flex5" v-for="(i,k) in backname" :key="k" :class="{ 'active': k%2==1 }" v-if="k>6">
                  <div class="flex3" >
                    <span  style="font-size: 18px;color: #8A8A8A;">{{ k+1 }}</span>
                    <span style="padding-left: 10px;">{{ i.name }}</span>
                  </div>
                  <span v-if="i.num">{{ i.num }}个</span>
                </div>
              </div>
            </el-col>

          </el-row>
        </div>
      </el-col>
    </el-row>
    <el-dialog title="销售数据"
            :visible.sync="open" width="500px" >
            <el-form-item label="收支类型/类别" prop="category" >

                </el-form-item>
                <el-table
                :data="tableData"
                style="width: 100%"
                :border="false"
                :header-cell-style="{background:'#F2F6FF',color:'#5E81F4'}">
                <el-table-column
                  prop="date"
                  label="销售渠道"
                  align="center"
                  >
                </el-table-column>
                <el-table-column
                  prop="name"
                  label="游戏"
                  align="center"
                  >
                </el-table-column>
                <el-table-column
                  prop="num"
                  label="数量"
                  align="center">
                </el-table-column>
                <el-table-column
                  prop="pay"
                  label="金额"
                  align="center">
                </el-table-column>
              </el-table>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      //状态数据
      TodayCount: '',
      name:"",
      open:false,
      status: {},
      formname:[{name:'螃蟹'},{name:'盼之'},{name:'氪金兽'},{name:'抖音'}],
      backname:[{name:'螃蟹',num:84},{name:'盼之',num:44},{name:'氪金兽',num:44},{name:'抖音',num:84},{name:'抖音',num:84},{name:'抖音',num:84},{name:'抖音',num:84},{name:'抖音',num:''},{name:'抖音',num:''},{name:'抖音',num:''},{name:'抖音',num:''},{name:'抖音',num:''},{name:'抖音',num:''},{name:'抖音',num:''}],
      tableData: [{
            date: '螃蟹',
            name: '王者荣耀',
            num: '5',
            pay:'4325'
          }, {
            date: '螃蟹',
            name: '原神',
            num: '1',
            pay:'5624'
          },{
            date: '螃蟹',
            name: '穿越火线',
            num: '2',
            pay:'1454'
          }, {
            date: '螃蟹',
            name: '和平精英',
            num: '5',
            pay:'4325'
          },]


    }

  },

  methods: {
    MoveCheck(){
      this.open=true
    }
  }

}
</script>

<style lang="scss" scoped>
::v-deep .el-table td.el-table__cell{
  border-bottom: none;
}
::v-deep .el-table th.el-table__cell.is-leaf{
  border-bottom: none;
}
::v-deep .el-table::before{
  height: 0;
}
::v-deep .el-dialog {
  .el-dialog__title {
        border-left: 3px solid rgba(84, 91, 245, 1);
        padding-left: 8px;

    }

}

// /deep/ .el-progress-circle__track {
// stroke: #EEEEEE;
// }
::v-deep .el-progress-bar__outer {
  background-color: #fff !important;
}

::v-deep .el-progress-bar__inner {
  text-align: left;
  background: linear-gradient(268.09deg, #6067FA 0%, #7799FC 100%)
}

::v-deep .el-progress-bar__innerText {
  color: #FFFFFF !important;
  font-size: 12px !important;
  font-weight: 600;
  padding-left: 16px;
}

.txt-bor {
  >p {

    opacity: 1;
    margin: 0 0 0 20px;
    /** 文本1 */
    font-size: 18px;
    font-weight: 400;
    color: rgba(17, 38, 60, 1);
    border-left: 3px solid rgba(84, 91, 245, 1);
    padding-left: 10px;
    // margin-bottom: 15px;
    margin-left: 0;
  }
}

.header {
  min-height: 55px;
  opacity: 1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 20px 45px rgba(240, 237, 246, 0.5);
  margin-bottom: 15px;
  padding: 10px 20px;
  padding-top: 16px;

  >p {

    opacity: 1;
    margin: 0 0 0 20px;
    /** 文本1 */
    font-size: 18px;
    font-weight: 400;
    color: rgba(17, 38, 60, 1);
    border-left: 3px solid rgba(84, 91, 245, 1);
    padding-left: 10px;
    // margin-bottom: 15px;
    margin-left: 0;
  }

  .images {
    display: flex;
    justify-content: space-between;
    padding: 0 6.25rem;
    margin-top: 15px;

    .item {
      text-align: center;

      p {
        margin-top: 0px;
        opacity: 1;
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0px;
        padding-top: .5625rem;
        color: rgba(156, 159, 167, 1);
        text-align: center;
        vertical-align: top;
      }

      h1 {

        font-size: 30px;
        margin: 8px;
      }
    }
  }



}
.backbox{
padding-top: 10px;
//  padding-bottom: 20px;
}
.flex4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex1{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flex2{
  display: flex;
  justify-content: space-around;
}
.flex3{
  display: flex;
  align-items: center;
  // justify-content: space-around;
}
.flex5{
  display: flex;
  justify-content: space-between;
}
.text-allnum{
color: #BCC3D4;
font-size: 14px;
}
.text-num{
color: #030202;
font-size: 24px;
padding-top: 10px;
}
.easycenter{
  padding: 10px 30px;
  padding-top: 16px;
  // padding-bottom: 10px;
  // padding-bott/om: 41px;
  .centertxt{
    font-size: 18px;
    color: #11263C;
  }
}
.vtncenterpur{
  padding:5px 0;
  padding-left: 30px;
  padding-right: 7px;
  font-size: 14px;
  color: #5E81F4;
  .imgboxvtn{
    width: 19.4px;
    height: 21.08px;
  }
}
.accountsource{
  font-size: 14px;
  padding: 8px 20px;
  margin-bottom: 40px;
  >span{
    cursor: pointer;
    background-image:-webkit-linear-gradient(right,#6067FA,#7799FC);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
  }
}
.active{
  background-color: #F2F6FF;
}
</style>
